package com.lll.simple.rpc.consumer.controller;

import com.lll.simple.rpc.consumer.anno.RpcReference;
import com.lll.simple.rpc.facade.api.HelloFacade;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 18:10 2021/2/4
 * @Modified By:
 */
@RestController
public class TestController {

    @RpcReference(serviceVersion = "1.0.0", timeout = 3000)
    private HelloFacade helloFacade;

    @GetMapping("/hello")
    public String hello() {
        return helloFacade.hello("LYL");
    }
}
